]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
global: Remove session_type property
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 16 May 2012 22:28:34 +0000 (00:28 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 22 May 2012 17:42:28 +0000 (19:42 +0200)
ShellGlobal:session-type is now unsed, remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=676156

src/shell-global-private.h
src/shell-global.c
src/shell-global.h

index 45e204ff3431e8514a53b534caa3efdb567ca34b..194312d65e46faa0a6d2e66a9f3414045ad41cac 100644 (file)
@@ -17,7 +17,4 @@ gboolean _shell_global_has_valid_session_mode (ShellGlobal *global);
 gboolean _shell_global_check_xdnd_event (ShellGlobal  *global,
                                          XEvent       *xev);
 
-void     _shell_global_set_session_type (ShellGlobal      *global,
-                                         ShellSessionType  session_type);
-
 #endif /* __SHELL_GLOBAL_PRIVATE_H__ */
index bc5a5c16db5190f004abe7011ab381658ab93d3e..ab3b59ea48fb303609cdbfc44117ad5f76bd5591 100644 (file)
@@ -97,7 +97,6 @@ struct _ShellGlobal {
 enum {
   PROP_0,
 
-  PROP_SESSION_TYPE,
   PROP_SESSION_MODE,
   PROP_OVERLAY_GROUP,
   PROP_SCREEN,
@@ -164,9 +163,6 @@ shell_global_get_property(GObject         *object,
 
   switch (prop_id)
     {
-    case PROP_SESSION_TYPE:
-      g_value_set_enum (value, shell_global_get_session_type (global));
-      break;
     case PROP_SESSION_MODE:
       g_value_set_string (value, shell_global_get_session_mode (global));
       break;
@@ -347,14 +343,6 @@ shell_global_class_init (ShellGlobalClass *klass)
                     G_TYPE_STRING,
                     G_TYPE_STRING);
 
-  g_object_class_install_property (gobject_class,
-                                   PROP_SESSION_TYPE,
-                                   g_param_spec_enum ("session-type",
-                                                      "Session Type",
-                                                      "The type of session",
-                                                      SHELL_TYPE_SESSION_TYPE,
-                                                      SHELL_SESSION_USER,
-                                                      G_PARAM_READABLE));
   g_object_class_install_property (gobject_class,
                                    PROP_SESSION_MODE,
                                    g_param_spec_string ("session-mode",
@@ -1803,36 +1791,6 @@ shell_global_launch_calendar_server (ShellGlobal *global)
   g_free (calendar_server_exe);
 }
 
-/**
- * shell_global_get_session_type:
- * @global: The #ShellGlobal.
- *
- * Gets the type of session gnome-shell provides.
- *
- * The type determines what UI elements are displayed,
- * what keybindings work, and generally how the shell
- * behaves.
- *
- * A session type of #SHELL_SESSION_USER means gnome-shell
- * will enable the activities overview, status menu, run dialog,
- * etc. This is the default.
- *
- * A session type of #SHELL_SESSION_GDM means gnome-shell
- * will enable a login dialog and run in a more confined
- * way. This type is suitable for the display manager.
- *
- * Returns: the type of session gnome-shell is providing.
- */
-ShellSessionType
-shell_global_get_session_type (ShellGlobal  *global)
-{
-  g_return_val_if_fail (SHELL_IS_GLOBAL (global),
-                        SHELL_SESSION_USER);
-
-  return strcmp (global->session_mode, "gdm") == 0 ? SHELL_SESSION_GDM
-                                                   : SHELL_SESSION_USER;
-}
-
 const char *
 shell_global_get_session_mode (ShellGlobal *global)
 {
index 908ec9e0277f5237dd616f59a8c759e440d47f25..41c21613c15ebf984a95d7899495d7979b710004 100644 (file)
@@ -146,7 +146,6 @@ typedef enum {
   SHELL_SESSION_GDM
 } ShellSessionType;
 
-ShellSessionType shell_global_get_session_type  (ShellGlobal  *global);
 const char *     shell_global_get_session_mode  (ShellGlobal  *global);
 
 G_END_DECLS